// 路由配置
const routes = [
  {
    path: "/Home",
    component: "Home",
  },
  {
    path: "/ComContent",
    component: "ComContent",
  },
  {
    path: "/RefsDemo",
    component: "RefsDemo",
  },
  {
    path: "/MockVModel",
    component: "MockVModel",
  },
  {
    path: "/CRUD",
    component: "CRUD",
  },
  {
    path: "/Optimization",
    component: "Optimization",
  },
  {
    path: "/ParentHuToSon",
    component: "ComTongXin/ParentHuToSon",
  },
  {
    path: "/ParentToSonUseRef",
    component: "ComTongXin/ParentToSonUseRef",
  },
  {
    path: "/BrotherChuan",
    component: "ComTongXin/BrotherChuan",
  },
  {
    path: "/BrotherChuanUseStateUp",
    component: "ComTongXin/BrotherChuanUseStateUp",
  },
  {
    path: "/ContextTree",
    component: "ComTongXin/ContextTree",
  },
  {
    path: "/HOC",
    component: "HOC",
  },
  {
    path: "/SecondRoute",
    component: "SecondRoute",
  },
  {
    path: "/Params",
    component: "RouteChuan/Params",
  },
  {
    path: "/ParamsDetail/:newsid",
    component: "RouteChuan/Params/Detail",
  },
  {
    path: "/Query",
    component: "RouteChuan/Query",
  },
  {
    path: "/QueryDetail",
    component: "RouteChuan/Query/Detail",
  },
  {
    path: "/Search",
    component: "RouteChuan/Search",
  },
  {
    path: "/SearchDetail",
    component: "RouteChuan/Search/Detail",
  },
  {
    path: "/Lifecycle",
    component: "Lifecycle",
  },
  {
    path: "/RouterContextObj",
    component: "RouterContextObj",
  },
  {
    path: "/NewPage",
    component: "NewPage",
  },
  {
    path: "/StoreDemo",
    component: "StoreDemo",
  },
  {
    path: "/StoreReactReduxDemo",
    component: "StoreReactReduxDemo",
  },
  {
    path: "/ImmutableDemo",
    component: "ImmutableDemo",
  },
  {
    path:"/ImmutableReduxDemo",
    component:"ImmutableReduxDemo"
  },
  {
    path:"/UseStateDemo",
    component:"Hooks/useStateDemo"
  },
  {
    path:"/UseEffectDemo",
    component:"Hooks/useEffectDemo"
  },
  {
    path:"/MemoDemo",
    component:"Hooks/MemoDemo/MemoDemo"
  },
  {
    path:"/UseCallBackDemo",
    component:"Hooks/UseCallBackDemo/UseCallBackDemo"
  },
  {
    path:"/UseMemoDemo",
    component:"Hooks/UseMemoDemo/UseMemoDemo"
  },
  {
    path:"/UseRefDemo",
    component:"Hooks/UseRefDemo/UseRefDemo"
  },
  {
    path:"/UseContextDemo",
    component:"Hooks/UseContextDemo"
  },
  {
    path:"/UseIdDemo",
    component:"Hooks/UseIdDemo"
  },
  {
    path:"/UseReducerDemo",
    component:"Hooks/UseReducerDemo"
  },
  {
    path:"/UseReducerAndUseContextDemo",
    component:"Hooks/UseReducerAndUseContextDemo"
  },
  {
    path:"/UseTransitionDemo",
    component:"Hooks/UseTransitionDemo"
  },
  {
    path:"/UseDebugDemo",
    component:"Hooks/UseDebugDemo"
  },
  {
    path:"/UseDeferredDemo",
    component:"Hooks/UseDeferredDemo"
  },
  {
    path:"/UseSyncExternalStoreDemo",
    component:"Hooks/UseSyncExternalStoreDemo"
  },
  {
    path:"/UseInsertionEffectDemo",
    component:"Hooks/UseInsertionEffectDemo"
  },
  {
    path:"/DiyHooksDemo",
    component:"Hooks/DiyHooksDemo"
  },
  {
    path:"/RTKDemo",
    component:"RTKDemo"
  },
  {
    path:"/RTKAsyncDemo",
    component:"RTKAsyncDemo"
  }

  
];
export default routes;

// 开闭原则：
// 1、对扩展（数据）开发
// 2、对修改（逻辑）关闭


// 可配置级别。
